//
//  PublicCourse.h
//  Courses
//
//  Created by xxx on 15/1/6.
//  Copyright (c) 2015年 wtf. All rights reserved.
//

#import "Course.h"

@interface PublicCourse : Course

pStr *markTime;

//"courseId": "课程id",
//"courseName": "课程名称",
//"coursedescription":"课程介绍",
//"TeacherID":"讲师Id",
//"TeacherName":"讲师姓名",
//"TeacherTitle":"讲师抬头",
//"TeacherHeadPhotoUrl":"讲师头像url",
//"coursefavoritesNum": "1000",
//"courseViewNum": "1000",
//"courseSerials":[
//                 {
//                     "courseSerialId":"课程系列id",
//                     "courseSerialName":"课程系统名称"
//                 }

//pStr *courseId;
//pStr *courseName;
//pStr *coursedescription;
//pStr *TeacherID;
//pStr *TeacherName;
//pStr *TeacherTitle;
//pStr *TeacherHeadPhotoUrl;
//pStr *coursefavoritesNum;
//pStr *courseViewNum;
// courseSerials

//- (id)initWithJsonDict:(NSDictionary *)jsonDict;
+ (NSArray *)publicCourses;

+ (NSArray *)publicCoursesWithSortOption:(NSInteger)sortOption
                               teacherId:(NSString *)teacherId
                                   tagId:(NSString *)tagId
                                  pageNo:(NSInteger)pageNo;

+ (BOOL)markPublicCourseById:(NSString *)courseId;

+ (BOOL)downloadPublicCourseById:(NSString *)courseId;

@end
